﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SpiceNet.Circuits;

namespace SpiceNet.Models
{
    /// <summary>
    /// A model that can contain current source instances
    /// </summary>
    public class CurrentSourceModel : Model
    {
        /// <summary>
        /// No parameters implemented
        /// </summary>
        public override Dictionary<string, IP> ParamTable => null;

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="name"></param>
        public CurrentSourceModel(string name) : base(name) { }

        /// <summary>
        /// Accept
        /// </summary>
        /// <param name="ckt"></param>
        public override void Accept(Circuit ckt)
        {
            // Override default implementation which does not check
            foreach (var inst in Instances)
                inst.Accept(ckt, this);
        }
    }
}
